CREATE TABLE cv$_map
(
	source_id NUMBER,
	target_id NUMBER,
	CONSTRAINT cv$_map_pk PRIMARY KEY(source_id, target_id)
		USING INDEX
		(
			CREATE UNIQUE INDEX cv$_map_pk_idx
				ON cv$_map
				(
					source_id ASC,
					target_id ASC
				)
		),
	CONSTRAINT cv$_map_source_id_fk FOREIGN KEY (source_id) REFERENCES cv$_source(id),
	CONSTRAINT cv$_map_target_id_fk FOREIGN KEY (target_id) REFERENCES cv$_target(id)
);
